<template>
  <view class="index-container">
    
    <view class="nav-buttons">
      <view class="nav-button live-btn" @click="goToLive">
        <text class="btn-text">直播页面</text>
      </view>
      
      <view class="nav-button chat-btn" @click="goToChat">
        <text class="btn-text">营养调理课堂</text>
      </view>
      
      <view class="nav-button cache-btn" @click="goToCacheClean">
        <text class="btn-text">缓存清理</text>
      </view>
      
      <view class="nav-button contract-btn" @click="goToContractSign">
        <text class="btn-text">合同签署</text>
      </view>
      <view class="nav-button order-btn" @click="goToCs">
        <text class="btn-text">课程详情</text>
      </view>
      <view class="nav-button order-btn" @click="goToOrderConfirm">
        <text class="btn-text">购买页面</text>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'IndexPage',
  methods: {
    goToLive() {
      uni.navigateTo({
        url: '/pages/live/live'
      })
    },
    
    goToChat() {
      uni.navigateTo({
        url: '/pages/chat/chat'
      })
    },
    
    goToLogin() {
      uni.navigateTo({
        url: '/pages/login/index'
      })
    },
    
    goToCacheClean() {
      uni.navigateTo({
        url: '/pages/cache-clean/index'
      })
    },
    
    goToContractSign() {
      uni.navigateTo({
        url: '/pages/contract-sign/index'
      })
    },
    
    goToOrderConfirm() {
      uni.navigateTo({
        url: '/pages/order/confirm'
      })
    },
	goToCs() {
	  uni.navigateTo({
	    url: '/pages/cs/cs'
	  })
	}
  }
}
</script>

<style scoped>
.index-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40rpx;
}

.header {
  text-align: center;
  margin-bottom: 80rpx;
}

.title {
  display: block;
  font-size: 48rpx;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20rpx;
}

.subtitle {
  display: block;
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.8);
}

.nav-buttons {
  width: 100%;
  max-width: 600rpx;
  display: flex;
  flex-direction: column;
  gap: 40rpx;
}

.nav-button {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 24rpx;
  padding: 40rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-button:active {
  transform: scale(0.98);
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.15);
}

.btn-icon {
  font-size: 80rpx;
  margin-bottom: 20rpx;
}

.btn-text {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 12rpx;
}

.btn-desc {
  font-size: 24rpx;
  color: #666;
}


.footer {
  margin-top: 80rpx;
  text-align: center;
}

.footer-text {
  font-size: 24rpx;
  color: rgba(255, 255, 255, 0.6);
}
</style>